<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>百朋后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div class="report_table">
    <table id="report_table" title="Client Side Pagination" style="width:100%;height:405px" data-options="
                        iconCls: 'icon-edit',
                        rownumbers:true,
                        singleSelect:true,
                        autoRowHeight:false,
                        pagination:true,
                        url:'../../report/loaninforeport/loaninfo_report_main',
                        pageSize:10,toolbar:'#tb',
                        onClickRow: onClickRow">
        <thead data-options="frozen:true">
        <tr>
            <th field="binfo_borrowid" width="10%" align="center">分期编号</th>
            <th field="contract_id" width="10%" align="center" editor="numberbox">合同编号</th>
            <th field="cust_name" width="10%" align="center">姓名</th>
            <th field="cust_identity" width="15%" align="center">身份证号码</th>
        </tr>
        </thead>
        <thead>
        <tr>
            <th field="binfo_opendate" width="10%" align="center">开户日期</th>
            <th field="buinfo_contractdown" width="10%" align="center">到期日期</th>
            <th field="binfo_address" width="10%" align="center">发生地点</th>
            <th field="binfo_grantdegree" width="10%" align="center">授信额度</th>
            <th field="binfo_sgrantdegree" width="10%" align="center">共享授信额度</th>
            <th field="binfo_maxdebt" width="10%" align="center">最大负债额</th>
            <th field="binfo_ensuretype" width="10%" align="center">担保方式</th>
            <th field="binfo_repayhz" width="10%" align="center">还款频率</th>
            <th field="binfo_repaymonth" width="10%" align="center">还款月数</th>
            <th field="binfo_remainmonth" width="10%" align="center">剩余还款月数</th>
            <th field="buinfo_treattime" width="10%" align="center">协定还款期数</th>
            <th field="buinfo_treatmoney" width="10%" align="center">协定还款额</th>
            <th field="buinfo_repaydown" width="10%" align="center">结算/应还款日期</th>
            <th field="buinfo_recentrepay" width="10%" align="center">最近一次还款日期</th>
            <th field="moth_pay" width="10%" align="center">本月应还款金额</th>
            <th field="moth_payed" width="10%" align="center">本月实际还款金额</th>
            <th field="repay_balance" width="10%" align="center">余额</th>
            <th field="isoverdue_count" width="10%" align="center">当前逾期期数</th>
            <th field="isoverdue_money" width="10%" align="center">当前逾期总额</th>
            <th field="sixty_principal" width="10%" align="center">逾期31~60天未归还本金</th>
            <th field="ninety_principal" width="10%" align="center">逾期61~90天未归还本金</th>
            <th field="onehundred_principal" width="10%" align="center">逾期91~180天未归还本金</th>
            <th field="other_principal" width="10%" align="center">逾期180天以上未归还本金</th>
            <th field="buinfo_overduesum" width="10%" align="center">累计逾期期数</th>
            <th field="buinfo_overduesum" width="10%" align="center">最高逾期期数</th>
            <th field="buinfo_classify" width="10%" align="center">五级分类状态</th>
            <th field="account_status" width="10%" align="center">账户状态</th>
            <th field="buinfo_repaystatus" width="20%" align="center">24月(账户)还款状态</th>
            <th field="tips" width="10%" align="center">账户拥有者信息提示</th>
            <th field="borrow_passtime" width="10%" align="center">合同生效日期</th>
            <th field="buinfo_contractdown" width="10%" align="center">合同终止日期</th>
            <th field="buinfo_workststus" width="10%" align="center">合同有效状态</th>
        </tr>
        </thead>
    </table>
</div>
<div id="tb" style="padding:5px;height:auto">
    <div style="margin-bottom:5px">
        <a href="javscript:;" onclick="exportReport();" class="easyui-linkbutton" iconCls="icon-print" plain="true">导出</a>
        <a href="javscript:;" onclick="update_contract();" class="easyui-linkbutton" iconCls="icon-edit" plain="true">确认</a>
    </div>
    <form action="../../report/loaninforeport/loaninfo_report" method="post" id="searchTable">
        <div>
            分期申请时间 <input id="month_time" name="month_time" data-options="required:true" value="{$search_array.month_time}">
            客户姓名: <input class="easyui-textbox" name="select_name" id="select_name" value="" data-options="prompt:'搜索姓名...'" style="width:150px"/>
            <a href="javascript:;" onclick="submitSearch();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
            <a href="javascript:;" onclick="resetSearch();" class="easyui-linkbutton" iconCls="icon-clear">重置</a>
        </div>
    </form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/report/loaninfo_report.js"></script>
<script type="text/javascript">
    $(function(){
//        var json='{$report_json}';
//        var array=eval('('+json+')');
//        console.log(array);
//        $('#report_table').datagrid({loadFilter:pagerFilter}).datagrid('loadData', array);
        $('#report_table').datagrid();
    });
</script>
</body>
</html>